ContentType

fun ContentType(mediaType: String, charset: Charset? = null, boundary: String? = null): ContentType
fun ContentType(mediaType: String, charset: Charset? = null, boundary: String? = null): ContentType

Creates a new instance of ContentType with the given parameters.

Since

8.0.0

Parameters

mediaType

The media type (also known as MIME type).

charset

The data charset.

boundary

The boundary for multipart/form-data media type.